package com.aaa.service;

import com.aaa.dao.ProductDao;
import com.aaa.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：Mickey
 * @date ：Created in 2022/11/17 15:10
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDao productDao;

    @Override
    public Product findById(Long pid) {
        return productDao.selectById(pid);
    }
}
